// 需求：创建一个 Buffer

// 方法：
// 1. alloc()
let buf_1 = Buffer.alloc(10)
console.log(buf_1)

// 2. allocUnsafe()
let buf_2 = Buffer.allocUnsafe(10000)
console.log(buf_2)

// 3. from()
let buf_3 = Buffer.from('Hello')
console.log(buf_3)

let buf_4 = Buffer.from([105, 108, 111, 118, 101, 121, 111, 117])
console.log(buf_4)
